/**
 * @author gcy[of1518]
 * @date 17/1/13 02:11:30
 * @description
 */
let express = require('express');
let path = require('path');
let app = express();


console.warn('项目启动中.');
process.on('uncaughtException', function(err) {
  console.error('Caught exception: ' + err.stack);
});

process.on('exit', function(code) {
  console.warn('About to exit with code:', code);
});

app.use(express.static(path.join(__dirname, 'dist')));

module.exports = app;
